import request from "@/utils/request";

/**
 * 查询收款方策略列表
 * @param params
 * @returns
 */
export function getpayeeList(data) {
  return request({
    url: '/management/strategy.strategy_payee/getList',
    method: 'post',
    data
  })
}

/**
 * 添加收款方策略列表
 * @param params
 * @returns
 */
export function addpayee(data) {
  return request({
    url: '/management/strategy.strategy_payee/add',
    method: 'post',
    data
  })
}

/**
 * 修改收款方策略列表
 * @param params
 * @returns
 */
export function updatepayee(data) {
  return request({
    url: '/management/strategy.strategy_payee/update',
    method: 'post',
    data
  })
}

/**
 * 删除收款方策略列表
 * @param params
 * @returns
 */
export function delpayee(data) {
  return request({
    url: '/management/strategy.strategy_payee/del',
    method: 'post',
    data
  })
}

/**
 * 获取微信平台证书
 * @param params
 * @returns
 */
export function getPlatformCert(data) {
  return request({
    url: '/management/strategy.strategy_payee/getPlatformCert',
    method: 'post',
    data
  })
}